package com.eos.orm.mybatis.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.SysProvinceMapper;
import com.eos.orm.mybatis.model.SysProvince;
import com.eos.orm.mybatis.model.SysProvinceExample;
/**
 * sys_province系统省份表的CURD操作
 * @author sz
 *
 */
public class SysProvinceMapperImpl extends AbstractSqlSessionFactory implements
		SysProvinceMapper {

	public int countByExample(SysProvinceExample example) {
		return 0;
	}

	public int deleteByExample(SysProvinceExample example) {
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		return 0;
	}

	public int insert(SysProvince record) {
		return 0;
	}

	public int insertSelective(SysProvince record) {
		return 0;
	}

	public List<SysProvince> selectByExample(SysProvinceExample example) {
		List<SysProvince> templist = new ArrayList<SysProvince>();
		SqlSession session = sqlSessionFactory.openSession();
		try{
			SysProvinceMapper mapper = session.getMapper(SysProvinceMapper.class);
			templist = mapper.selectByExample(example);
			mapper = null;
		}catch(Exception e){
			System.out
			.println("com.eos.orm.mybatis.dao.impl.SysProvinceMapperImpl.selectByExample throws exception:"
					+ e.getMessage());
		}finally{
			session.close();
		}
		return templist;
	}

	public SysProvince selectByPrimaryKey(Integer id) {
		return null;
	}

	public int updateByExample(SysProvince record, SysProvinceExample example) {
		return 0;
	}

	public int updateByExampleSelective(SysProvince record,
			SysProvinceExample example) {
		return 0;
	}

	public int updateByPrimaryKey(SysProvince record) {
		return 0;
	}

	public int updateByPrimaryKeySelective(SysProvince record) {
		return 0;
	}

}
